// 权限接口
export default {
    pressMock: (options) => {
        let { role } = JSON.parse(options.body)
        // console.log('press', role);
        if (role == '管理员') {
            // 说明是管理员
            return {
                code: 200,
                msg: "请求成功",
                data: [

                    {
                        path: 'approval',
                        // component: () => import('@/views/press/Approval.vue'),
                        meta: {
                            title: "admin审批管理",
                            icon: 'el-icon-user-solid'
                        },
                        name: 'Approval'
                    },
                    {
                        path: 'vacate',
                        // component: () => import('@/views/press/Vacate.vue'),
                        meta: {
                            title: "admin请假审批",
                            icon: 'el-icon-user-solid'
                        },
                        name: 'Vacate'
                    }
                ]
            }
        } else {
            // 说明你是普通用户
            return {
                code: 200,
                msg: '请求成功',
                data: [
                    {
                        path: 'woqingjia',
                        // component: () => import('@/views/press/Woqingjia.vue'),
                        meta: {
                            title: "uesr我要请假",
                            icon: 'el-icon-user-solid'
                        },
                        name: 'Woqingjia'
                    }
                ]
            }
        }
    }
}